/**
 *Project: jh-plugins
 *File: cn.xkshow.plugins.util.StringHelper.java 
 *Author: admin@xkshow.cn with the copyrite
 ****************************************************************
 *   VERSION       DATE            BY       CHANGE/COMMENT
 * --------------------------------------------------------------
 *    1.0        2013-3-27        xkshow.cn         create
 ****************************************************************
 *note: 
 ***************************************************************/ 
package cn.xkshow.plugins.util;

public class StringHelper {

	public static boolean isNotNull(String value) {
		return ((value != null) && (!("".equals(value.trim()))));
	}

	public static boolean isNotNull(Object value) {
		if (value != null) {
			return ((!(value instanceof String)) || (!(""
					.equals(((String) value).trim()))));
		}

		return false;
	}

	public static boolean isNotNull(String[] value) {
		return ((value != null) && (value.length != 0));
	}
	
}
